﻿@model workflowMVC.Models.LogOnModel

@{
    ViewBag.Title = "Đăng nhập";
}

<div id="login">

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@Html.ValidationSummary(true, "Đăng nhập thất bại! Hãy kiểm tra các lỗi sau:")


@using (Html.BeginForm())
       {
        <div class="ui-widget" style="text-align:center;"><div class="ui-state-highlight ui-corner-all" style="margin:10px"><h2>Đăng nhập</h2></div></div>
            <table>
                <tr>
                    <td style="text-align:right;">@Html.LabelFor(m => m.UserName)</td>
                    <td>@Html.TextBoxFor(m => m.UserName)</td>
                </tr>
                <tr>
                    <td></td>
                    <td class="alert">@Html.ValidationMessageFor(m => m.UserName) </td>
                </tr>
                <tr>
                    <td style="text-align:right;">@Html.LabelFor(m => m.Password) </td>
                    <td>@Html.PasswordFor(m => m.Password)</td>
                </tr>
                <tr>
                    <td></td>
                    <td class="alert">@Html.ValidationMessageFor(m => m.Password)</td>
                </tr>
                <tr>
                    <td style="text-align:right;">@Html.LabelFor(m => m.RememberMe)</td>
                    <td>@Html.CheckBoxFor(m => m.RememberMe)</td>                    
                </tr>
                <tr>
                    <td></td>
                    <td><input type="submit" value="Đăng nhập"/></td>
                </tr>
            </table>
        } 
</div>
